package com.ruoyi.business.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;

/**
 * 预警推送人配置视图对象 warning_config
 *
 * @author ruoyi
 * @date 2024-05-03
 */
@Data
@ExcelIgnoreUnannotated
public class WarningConfigVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 预警规则主键
     */
    @ExcelProperty(value = "预警规则主键")
    private Long id;

    /**
     * cron表达式
     */
    @ExcelProperty(value = "cron表达式")
    private String cron;

    /**
     * 是否启用（0=正常,1=停用）
     */
    @ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0==正常,1=停用")
    private String status;

    /**
     * 通知类型
     */
    @ExcelProperty(value = "通知类型")
    private String type;


}
